package com.jddup.test.pojo.postgresql;

import com.jddup.common.annotations.ColumnDes;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;
import java.util.Map;

/**
 * Created by ZZB on 2017/12/10.
 */
@Table(name = "test_full_type")
public class TestFullType {
    @Id
    @Column(name = "id")
    @ColumnDes(maxLength = 36)
    private String id;
    @Column(name = "test_integer")
    private Integer testInteger;
    @Column(name = "test_int")
    private Integer testInt;
    @Column(name = "test_smallint")
    @ColumnDes(maximum = "32767")
    private Integer testSmallint;
    @Column(name = "test_bigint")
    private Long testBigint;
    @Column(name = "test_decimal")
    @ColumnDes(precision = 20,scale = 2)
    private BigDecimal testDecimal;
    @Column(name = "test_numeric")
    @ColumnDes(precision = 20,scale = 2)
    private BigDecimal testNumeric;
    @Column(name = "test_smallserial")
    @ColumnDes(maximum = "32767")
    private Integer testSmallserial;
    @Column(name = "test_serial")
    private Integer testSerial;
    @Column(name = "test_bigserial")
    private Long testBigserial;
    @Column(name = "test_money")
    @ColumnDes(precision = 20,scale = 4)
    private BigDecimal testMoney;
    @Column(name = "test_char")
    @ColumnDes(maxLength = 50)
    private String testChar;
    @Column(name = "test_varchar")
    @ColumnDes(maxLength = 50)
    private String testVarchar;
    @Column(name = "test_text")
    private String testText;
    @Column(name = "test_byte")
    private byte testByte;
    @Column(name = "test_bytea")
    private byte[] testBytea;
    @Column(name = "test_timestamp")
    private Date testTimestamp;
    @Column(name = "test_timestamp_now")
    private Date testTimestampNow;
    @Column(name = "test_date")
    private java.sql.Date testDate;
    @Column(name = "test_time")
    private Time testTime;
    @Column(name = "test_bit")
    private boolean testBit;
    @Column(name = "test_json")
    private Map<String,Object> testJson;
    @Column(name = "test_boolean")
    private boolean testBoolean;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getTestInteger() {
        return testInteger == null ? 0 : testInteger;
    }

    public void setTestInteger(Integer testInteger) {
        this.testInteger = testInteger;
    }

    public Integer getTestInt() {
        return testInt == null ? 0 : testInt;
    }

    public void setTestInt(Integer testInt) {
        this.testInt = testInt;
    }

    public Integer getTestSmallint() {
        return testSmallint == null ? 0 : testSmallint;
    }

    public void setTestSmallint(Integer testSmallint) {
        this.testSmallint = testSmallint;
    }

    public Long getTestBigint() {
        return testBigint;
    }

    public void setTestBigint(Long testBigint) {
        this.testBigint = testBigint;
    }

    public BigDecimal getTestDecimal() {
        return testDecimal;
    }

    public void setTestDecimal(BigDecimal testDecimal) {
        this.testDecimal = testDecimal;
    }

    public BigDecimal getTestNumeric() {
        return testNumeric;
    }

    public void setTestNumeric(BigDecimal testNumeric) {
        this.testNumeric = testNumeric;
    }

    public Integer getTestSmallserial() {
        return testSmallserial == null ? 0 : testSmallserial;
    }

    public void setTestSmallserial(Integer testSmallserial) {
        this.testSmallserial = testSmallserial;
    }

    public Integer getTestSerial() {
        return testSerial == null ? 0 : testSerial;
    }

    public void setTestSerial(Integer testSerial) {
        this.testSerial = testSerial;
    }

    public Long getTestBigserial() {
        return testBigserial;
    }

    public void setTestBigserial(Long testBigserial) {
        this.testBigserial = testBigserial;
    }

    public BigDecimal getTestMoney() {
        return testMoney;
    }

    public void setTestMoney(BigDecimal testMoney) {
        this.testMoney = testMoney;
    }

    public String getTestChar() {
        return testChar;
    }

    public void setTestChar(String testChar) {
        this.testChar = testChar;
    }

    public String getTestVarchar() {
        return testVarchar;
    }

    public void setTestVarchar(String testVarchar) {
        this.testVarchar = testVarchar;
    }

    public String getTestText() {
        return testText;
    }

    public void setTestText(String testText) {
        this.testText = testText;
    }

    public byte getTestByte() {
        return testByte;
    }

    public void setTestByte(byte testByte) {
        this.testByte = testByte;
    }

    public byte[] getTestBytea() {
        return testBytea;
    }

    public void setTestBytea(byte[] testBytea) {
        this.testBytea = testBytea;
    }

    public Date getTestTimestamp() {
        return testTimestamp;
    }

    public void setTestTimestamp(Date testTimestamp) {
        this.testTimestamp = testTimestamp;
    }

    public Date getTestTimestampNow() {
        return testTimestampNow;
    }

    public void setTestTimestampNow(Date testTimestampNow) {
        this.testTimestampNow = testTimestampNow;
    }

    public java.sql.Date getTestDate() {
        return testDate;
    }

    public void setTestDate(java.sql.Date testDate) {
        this.testDate = testDate;
    }

    public Time getTestTime() {
        return testTime;
    }

    public void setTestTime(Time testTime) {
        this.testTime = testTime;
    }

    public boolean isTestBit() {
        return testBit;
    }

    public void setTestBit(boolean testBit) {
        this.testBit = testBit;
    }

    public Map<String, Object> getTestJson() {
        return testJson;
    }

    public void setTestJson(Map<String, Object> testJson) {
        this.testJson = testJson;
    }

    public boolean isTestBoolean() {
        return testBoolean;
    }

    public void setTestBoolean(boolean testBoolean) {
        this.testBoolean = testBoolean;
    }
}
